<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a4j="http://richfaces.org/a4j">

<ui:composition>
	<!-- Div caché pour affichage de la saisie commentaire -->
	<div id="sillon_comment_div" class="comment">
		<a4j:outputPanel id="sillon_comment_panel" >
			<h:panelGrid rendered="#{hubManaged.currentSillon ne null}">
				<h:panelGroup>
					<h:outputText value="#{lbl['sillon.train.id.comment']}" /> :
							<h:outputText value="#{hubManaged.currentSillon.tcmsTrainId}" />
				</h:panelGroup>
				<h:inputTextarea id="comment" 
					value="#{hubManaged.currentSillon.comment}" cols="60" rows="10" />

				<h:panelGrid columns="2" columnClasses="_left, _right"
					style="width:100%">
					<h:commandButton value="#{lbl['common.button.cancel']}"
						onclick="display_div(false,'sillon_comment_div'); return false;" />

					<a4j:commandButton value="#{lbl['common.button.validate']}"
						action="#{hubManaged.updateSillonComment}" 
						oncomplete="display_div(false,'sillon_comment_div'); return false;" />
				</h:panelGrid>
			</h:panelGrid>
		</a4j:outputPanel>
	</div>
</ui:composition>
</html>